package a.e.b.a;

import a.c.d;
import a.c.q;
import a.d.o;
import a.e.a.x;
import a.e.b.b.bb;
import a.e.b.b.cb;
import a.e.b.b.n;
import a.e.b.b.t;
import a.f.fd;
import a.f.hd;
import a.f.id;
import a.f.xb;
import a.j.g;
import a.j.*;
import a.j.tb;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import java.awt.geom.Point2D;
import java.util.Map;
import java.util.StringTokenizer;

public class u
  implements n
{
  static final Map a = x.k;
  static final Map b = x.j;
  static final Map c = x.l;
  static Class d;
  public static boolean e;
  
  protected void a(t paramt, Node paramNode, ig paramig)
    throws a.e.b.b.a
  {
    y.a(paramNode, paramig, new b_(null), paramt);
    c(paramt, paramNode, paramig);
    d(paramt, paramNode, paramig);
    b(paramt, paramNode, paramig);
  }
  
  protected void b(t paramt, Node paramNode, ig paramig)
    throws a.e.b.b.a
  {
    Node localNode = bb.a(paramNode, "PreferredPlacementDescriptor", "http://www.yworks.com/xml/graphml");
    Object localObject = null;
    if ((i.i) || (localNode != null)) {
      localObject = paramt.a(localNode);
    }
    if (localObject != null) {
      paramig.a((fd)localObject);
    }
  }
  
  protected void c(t paramt, Node paramNode, ig paramig)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
    Node localNode = localNamedNodeMap.getNamedItem("modelName");
    if ((bool) || (localNode != null))
    {
      String str = localNode.getNodeValue();
      Object localObject2;
      Object localObject3;
      Object localObject4;
      if (!bool) {
        if ("custom".equals(str))
        {
          localObject1 = bb.a(paramNode, "LabelModel", "http://www.yworks.com/xml/graphml");
          localObject2 = null;
          if ((bool) || (localObject1 != null)) {
            localObject2 = paramt.a(bb.a((Node)localObject1));
          }
          localObject3 = bb.a(paramNode, "ModelParameter", "http://www.yworks.com/xml/graphml");
          localObject4 = null;
          if ((bool) || (localObject3 != null)) {
            localObject4 = paramt.a(bb.a((Node)localObject3));
          }
          if (!bool)
          {
            if (!(localObject2 instanceof xb)) {
              return;
            }
            paramig.a((xb)localObject2, localObject4);
          }
          if (bool) {
            break label187;
          }
          if (i.h == 0) {
            return;
          }
        }
      }
      Object localObject1 = b.get(str);
      if (!bool)
      {
        if ((localObject1 instanceof Byte)) {
          label187:
          paramig.e(((Byte)localObject1).byteValue());
        }
        localNode = localNamedNodeMap.getNamedItem("distance");
      }
      if (!bool)
      {
        if (localNode != null) {
          paramig.f(Double.parseDouble(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("ratio");
      }
      if (!bool)
      {
        if (localNode != null) {
          paramig.g(Double.parseDouble(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("modelPosition");
      }
      if (!bool)
      {
        if (localNode != null)
        {
          localObject1 = a.get(localNode.getNodeValue());
          if (bool) {
            break label346;
          }
          if ((localObject1 instanceof Byte)) {
            paramig.d(((Byte)localObject1).byteValue());
          }
        }
        localNode = localNamedNodeMap.getNamedItem("preferredPlacement");
      }
      label346:
      if (!bool)
      {
        if (localNode != null) {
          localObject1 = c.get(localNode.getNodeValue());
        }
      }
      else
      {
        if (bool) {
          break label402;
        }
        if ((localObject1 instanceof Byte)) {
          paramig.i(((Byte)localObject1).byteValue());
        }
      }
      label402:
      if ((bool) || ((paramig.D() == 6) || (paramig.D() == 5)))
      {
        localObject1 = localNamedNodeMap.getNamedItem("x");
        localObject2 = localNamedNodeMap.getNamedItem("y");
        if ((bool) || ((localObject1 != null) && (localObject2 != null)))
        {
          localObject3 = paramig.ob();
          if ((bool) || (localObject3 != null))
          {
            localObject4 = ((tb)localObject3).x();
            double d1 = ((Point2D)localObject4).getX() + Double.parseDouble(((Node)localObject1).getNodeValue());
            double d2 = ((Point2D)localObject4).getY() + Double.parseDouble(((Node)localObject2).getNodeValue());
            Object localObject5 = paramig.g(d1, d2);
            if (localObject5 != null) {
              paramig.a(localObject5);
            }
          }
        }
      }
    }
  }
  
  private void d(t paramt, Node paramNode, ig paramig)
  {
    boolean bool = i.i;
    if ((bool) || (paramig.D() == 4))
    {
      tb localtb = paramig.ob();
      if ((bool) || (localtb != null))
      {
        Point2D localPoint2D = localtb.x();
        o localo = y.a(paramNode, localPoint2D.getX(), localPoint2D.getY());
        if (localo != null) {
          paramig.a(paramig.a().a(localo, localtb, localtb.h(), localtb.g()));
        }
      }
    }
  }
  
  protected ig a(t paramt, Node paramNode)
  {
    boolean bool = i.i;
    Object localObject1 = paramt.b();
    q localq = paramt.d();
    if ((bool) || (((localObject1 instanceof d)) && ((bool) || ((localq instanceof g)))))
    {
      Object localObject2 = paramt.a(a.b);
      if ((bool) || ((localObject2 instanceof tb)))
      {
        tb localtb = (tb)localObject2;
        ig localig = localtb.X();
        if (!bool) {
          if (localig != null) {
            localtb.a(localig);
          }
        }
        return localig;
      }
    }
    return new ig();
  }
  
  public void a(cb paramcb)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    Node localNode = paramcb.e();
    if (((bool) || (localNode.getNodeType() == 1)) && ((bool) || (("EdgeLabel".equals(localNode.getLocalName())) && ("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())))))
    {
      ig localig = a(paramcb.d(), localNode);
      a(paramcb.d(), localNode, localig);
      paramcb.a(localig);
    }
  }
  
  private static byte a(String paramString)
  {
    boolean bool = i.i;
    String str = paramString.toLowerCase();
    if (!bool) {
      if ("center".equals(str)) {
        return 0;
      }
    }
    if (!bool) {
      if ("left".equals(str)) {
        return 2;
      }
    }
    if (!bool) {
      if ("right".equals(str)) {
        return 1;
      }
    }
    try
    {
      return Byte.parseByte(paramString);
    }
    catch (NumberFormatException localNumberFormatException) {}
    return 0;
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  private static final class b_
    implements y.a_
  {
    private b_() {}
    
    public boolean a(hg paramhg, Node paramNode, t paramt)
    {
      boolean bool = i.i;
      ig localig = (ig)paramhg;
      if (!bool) {}
      u.c_ localc_ = (u.c_)paramt.a(u.d == null ? (u.d = u.b("a.e.b.a.u$c_")) : u.d);
      if ((bool) || (localc_ != null))
      {
        localc_.a(localig, paramNode, paramt);
        return true;
      }
      return false;
    }
    
    b_(u.0 param0)
    {
      this();
    }
  }
  
  public static class d_
    implements n
  {
    private static final String a = "|";
    public static boolean b;
    
    public void a(cb paramcb)
      throws a.e.b.b.a
    {
      boolean bool = i.i;
      Node localNode = paramcb.e();
      if ((bool) || ((localNode.getNodeType() == 1) && ((bool) || ("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())))))
      {
        String str = localNode.getLocalName();
        if ("PreferredPlacementDescriptor".equals(str)) {
          paramcb.a(a(localNode, paramcb.d()));
        }
      }
    }
    
    protected Object a(Node paramNode, t paramt)
    {
      boolean bool = i.i;
      fd localfd1 = new fd();
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("placement");
      if (!bool)
      {
        if (localNode != null) {
          localfd1.a(a(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("side");
      }
      if (!bool)
      {
        if (localNode != null) {
          localfd1.b(b(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("sideReference");
      }
      if (!bool)
      {
        if (localNode != null) {
          localfd1.c(c(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("angle");
      }
      if (!bool)
      {
        if (localNode != null) {
          try
          {
            localfd1.a(Double.parseDouble(localNode.getNodeValue()));
          }
          catch (NumberFormatException localNumberFormatException1) {}
        }
        localNode = localNamedNodeMap.getNamedItem("angleReference");
      }
      if (!bool)
      {
        if (localNode != null) {
          localfd1.d(d(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("angleRotationOnRightSide");
      }
      if (!bool)
      {
        if (localNode != null) {
          localfd1.e(e(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("angleOffsetOnRightSide");
      }
      if (!bool)
      {
        if (localNode != null) {
          localfd1.f(f(localNode.getNodeValue()));
        }
        localNode = localNamedNodeMap.getNamedItem("distance");
      }
      if (!bool)
      {
        if (localNode != null) {
          try
          {
            localfd1.d(Double.parseDouble(localNode.getNodeValue()));
          }
          catch (NumberFormatException localNumberFormatException2) {}
        }
        localNode = localNamedNodeMap.getNamedItem("frozen");
      }
      if (localNode != null)
      {
        if (bool) {
          break label360;
        }
        if ("true".equalsIgnoreCase(localNode.getNodeValue())) {
          localfd1.A();
        }
      }
      if (!bool) {
        if (localfd1.z())
        {
          label360:
          int i = localfd1.a();
          int j = localfd1.b();
          byte b1 = (byte)(i | j);
          fd localfd2 = fd.g(b1);
          if (bool) {
            break label408;
          }
          if (localfd1.equals(localfd2)) {
            return localfd2;
          }
        }
      }
      label408:
      return localfd1;
    }
    
    private static byte a(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      String str1 = paramString.toLowerCase();
      if (!bool) {
        if ("anywhere".equals(str1)) {
          return 0;
        }
      }
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(str1, "|");
      label94:
      do
      {
        do
        {
          String str2;
          do
          {
            do
            {
              if (!localStringTokenizer.hasMoreTokens()) {
                return b1;
              }
              str2 = localStringTokenizer.nextToken();
              if (bool) {
                break label94;
              }
              if (!"source".equals(str2)) {
                break;
              }
              b1 = (byte)(b1 | 0x1);
            } while ((!bool) && (i == 0));
            if (!bool) {
              if ("center".equals(str2)) {
                b1 = (byte)(b1 | 0x4);
              }
            }
          } while ((!bool) && ((i == 0) || (!"target".equals(str2))));
          if (bool) {
            break label158;
          }
          if (!bool)
          {
            if (i != 0) {
              break label158;
            }
            b1 = (byte)(b1 | 0x2);
          }
        } while (bool);
      } while (i == 0);
      label158:
      return b1;
    }
    
    private static byte b(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      String str1 = paramString.toLowerCase();
      if (!bool) {
        if ("anywhere".equals(str1)) {
          return 0;
        }
      }
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(str1, "|");
      label95:
      do
      {
        do
        {
          String str2;
          do
          {
            do
            {
              if (!localStringTokenizer.hasMoreTokens()) {
                return b1;
              }
              str2 = localStringTokenizer.nextToken();
              if (bool) {
                break label95;
              }
              if (!"left".equals(str2)) {
                break;
              }
              b1 = (byte)(b1 | 0x10);
            } while ((!bool) && (i == 0));
            if (!bool) {
              if ("on_edge".equals(str2)) {
                b1 = (byte)(b1 | 0x8);
              }
            }
          } while ((!bool) && ((i == 0) || (!"right".equals(str2))));
          if (bool) {
            break label161;
          }
          if (!bool)
          {
            if (i != 0) {
              break label161;
            }
            b1 = (byte)(b1 | 0x20);
          }
        } while (bool);
      } while (i == 0);
      label161:
      return b1;
    }
    
    private static byte c(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(paramString.toLowerCase(), "|");
      label73:
      do
      {
        do
        {
          String str;
          do
          {
            do
            {
              if (!localStringTokenizer.hasMoreTokens()) {
                return b1;
              }
              str = localStringTokenizer.nextToken();
              if (bool) {
                break label73;
              }
              if (!"absolute_left_in_north".equals(str)) {
                break;
              }
              b1 = (byte)(b1 | 0x2);
            } while ((!bool) && (i == 0));
            if (!bool) {
              if ("absolute_right_in_north".equals(str)) {
                b1 = (byte)(b1 | 0x4);
              }
            }
          } while ((!bool) && ((i == 0) || (!"relative_to_edge_flow".equals(str))));
          if (bool) {
            break label136;
          }
          if (!bool)
          {
            if (i != 0) {
              break label136;
            }
            b1 = (byte)(b1 | 0x1);
          }
        } while (bool);
      } while (i == 0);
      label136:
      return b1;
    }
    
    private static byte d(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(paramString.toLowerCase(), "|");
      do
      {
        do
        {
          String str;
          do
          {
            if (!localStringTokenizer.hasMoreTokens()) {
              break;
            }
            str = localStringTokenizer.nextToken();
            if (!bool) {
              if ("absolute".equals(str)) {
                b1 = (byte)(b1 | 0x1);
              }
            }
          } while ((!bool) && ((i == 0) || (!"relative_to_edge_flow".equals(str))));
          if (bool) {
            break label107;
          }
          if (!bool)
          {
            if (i != 0) {
              break label107;
            }
            b1 = (byte)(b1 | 0x2);
          }
        } while (bool);
      } while (i == 0);
      label107:
      return b1;
    }
    
    private static byte e(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(paramString.toLowerCase(), "|");
      do
      {
        do
        {
          String str;
          do
          {
            if (!localStringTokenizer.hasMoreTokens()) {
              break;
            }
            str = localStringTokenizer.nextToken();
            if (!bool) {
              if ("co".equals(str)) {
                b1 = (byte)(b1 | 0x1);
              }
            }
          } while ((!bool) && ((i == 0) || (!"counter".equals(str))));
          if (bool) {
            break label107;
          }
          if (!bool)
          {
            if (i != 0) {
              break label107;
            }
            b1 = (byte)(b1 | 0x2);
          }
        } while (bool);
      } while (i == 0);
      label107:
      return b1;
    }
    
    private static byte f(String paramString)
    {
      boolean bool = i.i;
      int i = i.h;
      byte b1 = 0;
      StringTokenizer localStringTokenizer = new StringTokenizer(paramString.toLowerCase(), "|");
      do
      {
        do
        {
          String str;
          do
          {
            if (!localStringTokenizer.hasMoreTokens()) {
              break;
            }
            str = localStringTokenizer.nextToken();
            if (!bool) {
              if ("0".equals(str)) {
                b1 = (byte)(b1 | 0x1);
              }
            }
          } while ((!bool) && ((i == 0) || (!"180".equals(str))));
          if (bool) {
            break label107;
          }
          if (!bool)
          {
            if (i != 0) {
              break label107;
            }
            b1 = (byte)(b1 | 0x2);
          }
        } while (bool);
      } while (i == 0);
      label107:
      return b1;
    }
  }
  
  public static class g_
    implements n
  {
    public static int a;
    
    public void a(cb paramcb)
      throws a.e.b.b.a
    {
      boolean bool = i.i;
      Node localNode = paramcb.e();
      if ((bool) || ((localNode.getNodeType() == 1) && ((bool) || ("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())))))
      {
        String str = localNode.getLocalName();
        if (!bool) {
          if ("SmartEdgeLabelModel".equals(str)) {
            paramcb.a(b(localNode, paramcb.d()));
          }
        }
        if ((bool) || ((i.h != 0) && ("SmartEdgeLabelModelParameter".equals(str)))) {
          paramcb.a(a(localNode, paramcb.d()));
        }
      }
    }
    
    protected Object a(Node paramNode, t paramt)
    {
      boolean bool2 = i.i;
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("segment");
      int i = 0;
      if (!bool2) {
        if (localNode != null) {
          try
          {
            i = Integer.parseInt(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException1)
          {
            i = 0;
          }
        }
      }
      localNode = localNamedNodeMap.getNamedItem("ratio");
      double d1 = 0.0D;
      if (!bool2) {
        if (localNode != null) {
          try
          {
            d1 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException2)
          {
            d1 = 0.0D;
          }
        }
      }
      localNode = localNamedNodeMap.getNamedItem("distance");
      double d2 = 0.0D;
      if (!bool2) {
        if (localNode != null) {
          try
          {
            d2 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException3)
          {
            d2 = 0.0D;
          }
        }
      }
      localNode = localNamedNodeMap.getNamedItem("distanceToCenter");
      boolean bool1 = false;
      if (!bool2) {
        if (localNode != null) {
          bool1 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
      }
      localNode = localNamedNodeMap.getNamedItem("position");
      byte b = 0;
      if (!bool2) {
        if (localNode != null) {
          b = u.a(localNode.getNodeValue());
        }
      }
      localNode = localNamedNodeMap.getNamedItem("angle");
      double d3 = 0.0D;
      if ((bool2) || (localNode != null)) {
        try
        {
          d3 = Double.parseDouble(localNode.getNodeValue());
        }
        catch (NumberFormatException localNumberFormatException4)
        {
          d3 = 0.0D;
        }
      }
      return new re.a_(i, d1, d2, bool1, b, d3);
    }
    
    protected Object b(Node paramNode, t paramt)
    {
      boolean bool3 = i.i;
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      re localre = new re();
      Node localNode = localNamedNodeMap.getNamedItem("defaultAngle");
      double d1 = 0.0D;
      if (!bool3)
      {
        if (localNode != null) {
          try
          {
            d1 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException1)
          {
            d1 = 0.0D;
          }
        }
        localre.a(d1);
      }
      localNode = localNamedNodeMap.getNamedItem("defaultDistance");
      double d2 = 10.0D;
      if (!bool3)
      {
        if (localNode != null) {
          try
          {
            d2 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException2)
          {
            d2 = 10.0D;
          }
        }
        localre.b(d2);
      }
      localNode = localNamedNodeMap.getNamedItem("autoRotationEnabled");
      boolean bool1 = false;
      if (!bool3)
      {
        if (localNode != null) {
          bool1 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localre.a(bool1);
      }
      localNode = localNamedNodeMap.getNamedItem("autoFlippingEnabled");
      boolean bool2 = false;
      if (!bool3)
      {
        if (localNode != null) {
          bool2 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localre.b(bool2);
      }
      return localre;
    }
  }
  
  public static class f_
    implements n
  {
    public static boolean a;
    
    public void a(cb paramcb)
      throws a.e.b.b.a
    {
      boolean bool = i.i;
      Node localNode = paramcb.e();
      if ((bool) || ((localNode.getNodeType() == 1) && ((bool) || ("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())))))
      {
        String str = localNode.getLocalName();
        if (!bool) {
          if ("RotatedSliderEdgeLabelModel".equals(str)) {
            paramcb.a(b(localNode, paramcb.d()));
          }
        }
        if ((bool) || ((i.h != 0) && ("RotatedSliderEdgeLabelModelParameter".equals(str)))) {
          paramcb.a(a(localNode, paramcb.d()));
        }
      }
    }
    
    protected Object a(Node paramNode, t paramt)
    {
      boolean bool2 = i.i;
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("ratio");
      double d = 0.0D;
      if (!bool2) {
        if (localNode != null) {
          try
          {
            d = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException1)
          {
            d = 0.0D;
          }
        }
      }
      localNode = localNamedNodeMap.getNamedItem("segment");
      int i = 0;
      if (!bool2) {
        if (localNode != null) {
          try
          {
            i = Integer.parseInt(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException2)
          {
            i = 0;
          }
        }
      }
      localNode = localNamedNodeMap.getNamedItem("invertingSign");
      boolean bool1 = false;
      if ((bool2) || (localNode != null)) {
        bool1 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
      }
      return new id.a_(i, d, bool1);
    }
    
    protected Object b(Node paramNode, t paramt)
    {
      boolean bool4 = i.i;
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("mode");
      byte b = 0;
      if ((bool4) || (localNode != null)) {
        b = a(localNode.getNodeValue());
      }
      id localid = new id(b);
      localNode = localNamedNodeMap.getNamedItem("distance");
      double d1 = 0.0D;
      if (!bool4)
      {
        if (localNode != null) {
          try
          {
            d1 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException1)
          {
            d1 = 0.0D;
          }
        }
        localid.a(d1);
      }
      localNode = localNamedNodeMap.getNamedItem("autoRotationEnabled");
      boolean bool1 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool1 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localid.b(bool1);
      }
      localNode = localNamedNodeMap.getNamedItem("autoFlippingEnabled");
      boolean bool2 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool2 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localid.c(bool2);
      }
      localNode = localNamedNodeMap.getNamedItem("angle");
      double d2 = 0.0D;
      if (!bool4)
      {
        if (localNode != null) {
          try
          {
            d2 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException2)
          {
            d2 = 0.0D;
          }
        }
        localid.b(d2);
      }
      localNode = localNamedNodeMap.getNamedItem("distanceRelativeToEdge");
      boolean bool3 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool3 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localid.a(bool3);
      }
      return localid;
    }
    
    private static byte a(String paramString)
    {
      boolean bool = i.i;
      String str = paramString.toLowerCase();
      if (!bool) {
        if ("center_slider".equals(str)) {
          return 0;
        }
      }
      if (!bool) {
        if ("side_slider".equals(str)) {
          return 1;
        }
      }
      if (!bool) {
        if ("single_side_slider".equals(str)) {
          return 2;
        }
      }
      try
      {
        return Byte.parseByte(paramString);
      }
      catch (NumberFormatException localNumberFormatException) {}
      return 0;
    }
  }
  
  public static class e_
    implements n
  {
    public static boolean a;
    
    public void a(cb paramcb)
      throws a.e.b.b.a
    {
      boolean bool = i.i;
      Node localNode = paramcb.e();
      if ((bool) || ((localNode.getNodeType() == 1) && ((bool) || ("http://www.yworks.com/xml/graphml".equals(localNode.getNamespaceURI())))))
      {
        String str = localNode.getLocalName();
        if (!bool) {
          if ("RotatedDiscreteEdgeLabelModel".equals(str)) {
            paramcb.a(b(localNode, paramcb.d()));
          }
        }
        if ((bool) || ((i.h != 0) && ("RotatedDiscreteEdgeLabelModelParameter".equals(str)))) {
          paramcb.a(a(localNode, paramcb.d()));
        }
      }
    }
    
    protected Object a(Node paramNode, t paramt)
    {
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("position");
      int i = 128;
      if ((i.i) || (localNode != null)) {
        i = a(localNode.getNodeValue());
      }
      return new hd.a_(i);
    }
    
    private static int a(String paramString)
    {
      boolean bool = i.i;
      String str = paramString.toLowerCase();
      if (!bool) {
        if ("shead".equals(str)) {
          return 1;
        }
      }
      if (!bool) {
        if ("head".equals(str)) {
          return 2;
        }
      }
      if (!bool) {
        if ("thead".equals(str)) {
          return 4;
        }
      }
      if (!bool) {
        if ("stail".equals(str)) {
          return 8;
        }
      }
      if (!bool) {
        if ("tail".equals(str)) {
          return 16;
        }
      }
      if (!bool) {
        if ("ttail".equals(str)) {
          return 32;
        }
      }
      if (!bool) {
        if ("scenter".equals(str)) {
          return 64;
        }
      }
      if (!bool) {
        if ("center".equals(str)) {
          return 128;
        }
      }
      if (!bool) {
        if ("tcenter".equals(str)) {
          return 256;
        }
      }
      try
      {
        return Integer.parseInt(paramString);
      }
      catch (NumberFormatException localNumberFormatException) {}
      return 128;
    }
    
    protected Object b(Node paramNode, t paramt)
    {
      boolean bool4 = i.i;
      NamedNodeMap localNamedNodeMap = paramNode.getAttributes();
      Node localNode = localNamedNodeMap.getNamedItem("candidateMask");
      int i = 63;
      if ((bool4) || (localNode != null)) {
        try
        {
          i = Integer.parseInt(localNode.getNodeValue());
        }
        catch (NumberFormatException localNumberFormatException1)
        {
          i = 63;
        }
      }
      hd localhd = new hd(i);
      localNode = localNamedNodeMap.getNamedItem("autoRotationEnabled");
      boolean bool1 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool1 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localhd.b(bool1);
      }
      localNode = localNamedNodeMap.getNamedItem("autoFlippingEnabled");
      boolean bool2 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool2 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localhd.c(bool2);
      }
      localNode = localNamedNodeMap.getNamedItem("angle");
      double d1 = 0.0D;
      if (!bool4)
      {
        if (localNode != null) {
          try
          {
            d1 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException2)
          {
            d1 = 0.0D;
          }
        }
        localhd.a(d1);
      }
      localNode = localNamedNodeMap.getNamedItem("distance");
      double d2 = 2.0D;
      if (!bool4)
      {
        if (localNode != null) {
          try
          {
            d2 = Double.parseDouble(localNode.getNodeValue());
          }
          catch (NumberFormatException localNumberFormatException3)
          {
            d2 = 2.0D;
          }
        }
        localhd.b(d2);
      }
      localNode = localNamedNodeMap.getNamedItem("positionRelativeToSegment");
      boolean bool3 = false;
      if (!bool4)
      {
        if (localNode != null) {
          bool3 = Boolean.valueOf(localNode.getNodeValue()).booleanValue();
        }
        localhd.a(bool3);
      }
      return localhd;
    }
  }
  
  public static abstract interface c_
  {
    public abstract void a(ig paramig, Node paramNode, t paramt);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.a.u

 * JD-Core Version:    0.7.0.1

 */